package com.junjiao.util.java;

/**
 * 常量
 * 
 * @author fqm
 * 
 */
public class Constants {
	/* ADD BY ZYB */
	/**
	 * 简版商家
	 */
	public static final String COMPANY_TYPE_A = "3";
	/**
	 * 自注册商家
	 */
	public static final String COMPANY_TYPE_B = "2";
	/**
	 * 加盟商家
	 */
	public static final String COMPANY_TYPE_C = "1";

	public static final String FILE_SEPARATOR = System.getProperties()
			.getProperty("file.separator");
	// public static final String CATALOG_PATH = "eshop\\scripts";
	// public static final String CATALOG_FILE_NAME = "catalog.js";
	public static final String ARER_PATH = "eshop" + FILE_SEPARATOR + "scripts";
	public static final String ADMIN_ARER_PATH = "admin" + FILE_SEPARATOR
			+ "js" + FILE_SEPARATOR + "script";
	public static final String AREA_FILE_NAME = "area.js";
	public static final String HELP_MESSAGE_NAME = "help.js";
	public static final String MAP_AREA_PATH = "eshop" + FILE_SEPARATOR
			+ "scripts";
	public static final String MAP_AREA_NAME = "maparea.js";
	public static final String ESHOPZONE_PATH = "admin" + FILE_SEPARATOR
			+ "style"; // 商圈xml存放位置
	public static final String ESHOPZONE_FILE_NAME = "eshopZone.xml"; // 商圈xml文件名
	public static final String REGION_INFO_SESSION = "regionInfo";// 地区信息session
																	// key

	public static final String REGION_PATH = "corp" + FILE_SEPARATOR + "js"
			+ FILE_SEPARATOR;
	public static final String Fun_REGION_PATH = "fenlei" + FILE_SEPARATOR
			+ "js";
	public static final String REGION_FILE_NAME = "region.js"; // 省市
	public static final String REGION_FILE_NAME2 = "region2.js"; // 省市2
	public static final String Fun_REGION_FILE = "funRegion.js"; // 开通分类信息频道的region.js

	public static final String CATALOG_PATH = "corp" + FILE_SEPARATOR + "js"
			+ FILE_SEPARATOR; // 行业分类
	public static final String CATALOG_FILE_NAME = "catalog.js";

	/**
	 * 公交查询(公交换乘)
	 */
	public static final String BUS_RIDE = "bus";
	/**
	 * 公交线路
	 */
	public static final String BUS_LINE = "line";
	/**
	 * 公交站点
	 */
	public static final String BUS_STATIION = "stopid";
	/**
	 * 公交站点名
	 */
	public static final String BUS_STATION_NAME = "stop";

	/**
	 * 公交自驾
	 */
	public static final String BUS_DRIVE = "driver";

	/**
	 * 商家所有客户在默认组里--名称为默认组
	 */
	public static final String ESHOP_DEFAULT_GROUP_NAME = "默认组";

	/**
	 * 图片映射路径 /img/ 对应 z:\images
	 */
	public static final String IMG_MAPPING_PATH = "/img/";
	/**
	 * 上传文件大小
	 */
	public static final int FILE_UPLOAD_SIZE = 3072000; // 多个文件3000K
	public static final int ONE_FILE_UPLOAD_SIZE = 307200; // 单个文件300K
	public static final int ONE_FILE_UPLOAD_SIZE_M = 1024000; // 1M
	public static final int ONE_FILE_UPLOAD_SIZE_MAX = 10024000; // 最大限制
	/**
	 * 文件上传的标题 表单列名 前缀
	 */
	public static final String FILE_UPLOAD_TITLE = "title";
	/**
	 * 文件上传的备注，描述 表单列名 前缀
	 */
	public static final String FILE_UPLOAD_REMARK = "remark";

	public static final String FILE_UPLOAD_ESHOP = "eshop";
	/**
	 * 缩略图 命名
	 */
	public static final String IMG_HEAD_NAME = "scale";// scale_type_附件ID.文件类型
														// type为图片缩略图类型
														// 1,2,3….一位数

	/**
	 * session超时返回登陆页面记录原访问的jsp或action
	 */
	public static final String LOGIN_FORWARD_URL = "login_forward_url";
	/**
	 * 商家后台登陆用户名
	 */
	public static final String LOGIN_USER_NAME = "loginEShopName";
	/**
	 * 商家后台登陆用户密码
	 */
	public static final String LOGIN_POSSWORD = "loginEShopPassWord";
	/**
	 * 商家后台登陆验证码
	 */
	public static final String LOGIN_CHECK_CODE = "checkcode";
	/**
	 * 商家注册时默认10M图片上传空间
	 */
	public static final Long ESHOP_FILE_SIZE = new Long(10000000l);
	/**
	 * 商家注册时默认100M视频上传空间
	 */
	public static final Long ESHOP_VOIDE_SIZE = new Long(100000000l);

	public static final String FILEFOLDER = "userImg";// 图片文件夹
	public static final String TEMPFILEFOLDER = "temp";// 临时文件夹
	public static final String SYSCODEXMLFOLDER = "sysXml";// xml文件夹
	public static final String PHONENAME_CODE_XML = "phonename.xml";// xml文件夹
	public static final String ALLCITY_CODE_XML = "city.xml";// 城市xml文件名
	public static final String BASECITY_CODE_XML = "basecity.xml";// 城市xml文件名
	public static final String IDCLASS_CODE_XML = "idclass.xml";// 证件类型xml文件名
	public static final String IMNAME_CODE_XML = "imname.xml";// 通讯工具xml文件名
	public static final String CATALOG_CODE_XML = "catalog.xml";// 分类xml文件名
	public static final String CATALOGUSER_CODE_XML = "cataloguser.xml";// 分类xml文件名
	public static final String CITYCLASS_CODE_XML = "cityclass.xml";// 城市信息xml文件名
	public static final String HONOR_CODE_XML = "honor.xml";// 用户头头衔xml文件名
	public static final String ESHOPINFO_CODE_XML = "eshopinfo.xml";// 用户头头衔xml文件名
	public static final String CATALOG_SPLIT = "-";// 分类的分隔符
	public static final String CITY_CODE = "FJXM";// 城市代码
	public static final String CATE_NO_IMG = "cate/images/cate68-68.jpg"; // 临时的CATE图片

	/**
	 * 地图
	 */
	public static final String RICHMAP_AREA = "/Wing4/map?act=getregion";
	public static final String RICHMAP_APP = "/richmap4/";

	// 用户登录绑定在Session的变量名
	public static final String ENTERPRISEUSER_SESSION = "ENTERPRISEUSERSESSION";
	public static final String REGPHONE_SESSION = "REGPHONESESSION";
	public static final String ESHOP_SESSION = "LinkmanSession";

	// =============================start by
	// lwj==========================================
	public static final String COMPANY_SESSION = "companySession";
	// =============================end by
	// lwj============================================

	public static final String ESHOP_TMP_SESSION = "ESHOP_TMP_SESSION"; // 商家临时表
	public static final String USER_SESSION = "loginUser";
	// 产品目录session
	public static final String PRO_CATA_SESSION = "PRO_CATA_SESSION"; // 产品目录

	/**
	 * 生成检验码绑定在Session的变量名
	 */
	public static final String VERIFY_CODE = "rand";
	// 存放在Session的临时图片名
	public static final String TEMP_FILE = "TEMP_FILE_MAP";

	/**
	 * 注册用户时不能包含字符的正则表达式
	 */
	public static final String USERID_REGEX = "[<>@&\"'/$#]";
	public static final String PHONE_REGEX = "(((010|02\\d{1}|0[3-9]\\d{2})\\d{7,8}|(\\+)?(86)?(0)?1(3\\d{1}|58|59)\\d{8}))";
	public static final String MOBILE_PHONE_REGEX = "(\\+)?(86)?(0)?1(3\\d{1}|58|59)\\d{8}";

	// 保存在客户端COOKIE的名称
	public static final String COOKIE_REGPHONE = "XmTele_regPhone";
	public static final String COOKIE_PASSWORD = "XmTele_PassWord";
	public static final String COOKIE_CITY = "XmTele_city";

	// 系统用户
	public static final String SYSTEMUSER = "TELEUSER";
	// 用户系统文件夹
	public static final String USER_ICON_DIR = "我的头像";
	public static final String USER_IAMGE_DIR = "我的图标";
	public static final String USER_PHOTO_DIR = "我的照片";

	/**
	 * 时间格式
	 */
	public static final String STANDARD_DATE_PATTERN = "yyyy-MM-dd";
	public static final String SIMPLE_DATE_PATTERN = "MM-dd";
	public static final String STANDARD_TIME_PATTERN = "yyyy-MM-dd HH:mm";
	public static final String FULL_TIME_PATTERN = "yyyy-MM-dd HH:mm:ss";
	public static final String SIMPLE_TIME_PATTERN = "MM-dd HH:mm";

	/**
	 * 永许上传图片的格式 zyb 增加png ，swf
	 */
	public static final String IMAGE_TYPE = ".jpg.gif.bmp.png.swf";
	/**
	 * 附件类型
	 */
	public static final String ATTACH_TYPE = ".zip.rar.jar";

	// 更新索引的工作任务
	public static final String CONTEXT_TASKSETS = "CONTEXT_TASKSETS";

	// 更新商家信息
	public static final String UPDATE_TYPE_ESHOP_PASSWORD = "updatePassword"; // 更新商家密码
	public static final String UPDATE_TYPE_ESHOP_BASE = "updateBase";// 更新商家基本信息
	public static final String UPDATE_TYPE_ESHOP_EXPAND = "updateExpand";// 更新商家扩展信息

	/**
	 * 号百域名
	 */
	public static final String DOMAIN_PREFIX = "http://"; // 域名前缀
	public static final String WEB114_DOMAIN = ".118114.cn"; // 号百一级域名

	// 敏感词返回结果
	public static final String KEYWORD_RETURN_TRUE = "TOTAL=1"; // 有
	public static final String KEYWORD_RETURN_FALSE = "TOTAL=0"; // 无

	/**
	 * 信息审核量统计报表 start
	 */
	public static final String MODEL_ESHOP_PRODUCT = "EShopProduct"; // 商家产品
	public static final String MODEL_ESHOP_INFO = "EShopInfo"; // 商家动态
	public static final String MODEL_ESHOP_MESSAGE = "EShopMessage"; // 商家消息
	public static final String MODEL_ESHOP_COMMENT = "EshopComment"; // 商家点评
	public static final String MODEL_ESHOP_MOFIFY = "EShopTmpModi"; // 商家纠错

	public static final String CHECK_NO = "N"; // 未审核

	// 频道编码
	public static final String CHANNELID_SEARCH = "000100070005"; // 本地搜索
	public static final String CHANNELID_HOUSE = "000100070004"; // 房产频道
	public static final String CHANNELID_FOOD = "000100070006"; // 餐饮频道
	public static final String CHANNELID_SUPPORT = "000100070001"; // 支撑系统
	// 审核类型的编码
	public static final String VERIFYTYPEID_ESHOP_MESSAGE = "1"; // 商家消息审核
	public static final String VERIFYTYPEID_ESHOP_PRODUCT = "2"; // 商家产品审核
	public static final String VERIFYTYPEID_ESHOP_MOFIFY = "3"; // 商家纠错审核
	public static final String VERIFYTYPEID_ESHOP_PHOTO = "4"; // 商家相片审核
	public static final String VERIFYTYPEID_ESHOP_COMMENT = "5"; // 商家点评审核
	public static final String VERIFYTYPEID_ESHOP_INFO = "6"; // 商家动态审核
	public static final String VERIFYTYPEID_ESHOP_MOBILEINFO = "7"; // 手机信息审核
	public static final String VERIFYTYPEID_HOUSE_MODIFY = "8"; // 房产纠错审核
	public static final String VERIFYTYPEID_FOOD_MODIFY = "9"; // 餐饮纠错信息审核
	public static final String VERIFYTYPEID_FOOD_COMMENT = "10"; // 餐饮点评信息审核
	public static final String VERIFYTYPEID_FOOD_PHOTO = "11"; // 餐饮图片审核
	public static final String VERIFYTYPEID_PERSON = "12"; // 个人信息审核
	public static final String VERIFYTYPEID_ESHOP = "13"; // 商家信息审核

	/******** 信息审核量统计报表 end ******************/

	/**
	 * 行业主题词推荐数量限制
	 */
	public static final int THEME_WORD_LIMT = 15;
}
